package com.itheima.domain;

import java.util.StringJoiner;

public class Orders {
    //对应订单表列名变量
    private Integer id;
    private String  number;
  

    public Orders() {
    }

    public Orders(Integer id, String number, User user) {
        this.id = id;
        this.number = number;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
    

    @Override
    public String toString() {
        return new StringJoiner(", ", Orders.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("number='" + number + "'")
                .toString();
    }
}
